<!doctype html>
<html lang="en">
<head>
	<title>文章列表</title>
	<meta charset='utf-8'/>
	<script type="text/javascript" src="__STATIC__/hdjs/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__STATIC__/hdjs/hdjs.min.js"></script>
	<js file="__CONTROLLER_VIEW__/js/content.js"/>
	<jsconst/>
</head>
<body>
<div class="hd-menu-list">
	<ul>
		 <li class="active"><a href="{|U:'index',array('cid' =>1)}" > 新闻中心 </a></li>
		 <li class="active"><a href="{|U:'index',array('cid' =>2)}"> 产品中心 </a></li>
	</ul>
</div>
<div>
	<table class='hd-table hd-table-list'>
		<thead>
			<tr>
				<td class="hd-w30"><input type="checkbox" id="select_all"/></td>
				<td class='hd-w30'>ID</td>
				<td class='hd-w50'>栏目</td>
				<td>标题</td>
				<td class='hd-w100'>作者</td>
				<td class='hd-w50'>点击数</td>
				<td class='hd-w100'>操作</td>
			</tr>
		</thead>
		<list from='$article' name="$a">
		<tr>
				<td><input type="checkbox" name="id[]" value="{$a.id}"/></td>
				<td>{$a.id}</td>
				<td>{$a.cname}</td>
				<td>{$a.title}</td>
				<td>{$a.author}</td>
				<td>{$a.click}</td>
				<td>
					<a href="{|U:'Index/Index/show',array('id'=>$a['id'])}"  target="_blank" >查看</a> |
					<a href="{|U:edit,array('id'=>$a['id'])}">编辑</a> |
					<a href="{|U:del,array('id'=>$a['id'])}">删除</a>
				</td>
			</tr>
		</list>
	</table>
	<div class="hd-page">
	{$page}
	</div>
</div>
<div style="margin:20px 10pc;">
	<input type="button" class="hd-cancel" value="全选" onclick="select_all('.table2')"/>
	<input type="button" class="hd-cancel" value="反选" onclick="reverse_select('.table2')"/>
	<input type="button" class="hd-cancel" onclick="del()" value="批量删除"/>
</div>
</body>
</html>
